package com.synjones.wschool.face.mapper;

import com.synjones.wschool.face.domain.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper  {

    Teacher findByAccount(@Param("account") String account);

    Teacher findTeacherById(@Param("teacherId") Long teacherId);

    Teacher findByMobile(@Param("mobile") String mobile);

    int updateMobile(@Param("userId") Long userId, @Param("mobile") String mobile);

    List<Teacher> findByTeacherIds(List<Long> idList);

    Integer querySchoolIdbyTeachereId(@Param("teacherId") Long teacherId);


    List<Teacher> getTeacherBySchoolId(@Param("schoolId") Long schoolId);

    Teacher getTeacherBySno(@Param("sno") String sno);

    int updatePassword(@Param("userId") Long userId, @Param("pwd") String encryptPwd);

    int updatePasswordByMobile(@Param("mobile") String mobile, @Param("newPassword") String newPassword);

    Teacher findByIdCardNo(@Param("idCardNo") String idCardNo);

    List<Teacher> listTeacher(@Param("list") List<String> teacherEnos);

    Teacher selectOneByEno(@Param("eno") String userEno);
}